package com.tidc.seaserverservice.service;

import com.aliyuncs.exceptions.ClientException;
import com.tidc.seaservermodel.entity.Fres;
import com.tidc.seaservermodel.entity.User;
import com.tidc.seaservermodel.exception.TidcBadParent;
import com.tidc.seaservermodel.exception.TidcRestException;
import com.tidc.seaservermodel.verify.SecondaryUserVerify;
import org.apache.ibatis.annotations.Param;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @author ：冯涛滔
 * @date ：Created in 2020/10/12 21:16
 * @description：
 * @modified By：
 * @version:
 */
public interface UserService {
    Fres<String> register(User user) throws TidcBadParent;
    Fres<String> getCode(int type,String phone, HttpServletRequest req) throws TidcBadParent, TidcRestException, ClientException;

}
